import request from '@/utils/request';

export async function getDeviceInfoByPage(params: any) {
  return request('/api/device/getDeviceInfoByPage', {
    method: 'POST',
    data: params,
  });
}

export async function addDeviceInfo(params: any) {
  return request('/api/device/addDeviceInfo', {
    method: 'POST',
    data: params,
  });
}

export async function delDeviceInfo(params: any) {
  return request('/api/device/delDeviceInfo', {
    method: 'POST',
    data: params,
  });
}

export async function updateDeviceInfo(params: any) {
  return request('/api/device/updateDeviceInfo', {
    method: 'POST',
    data: params,
  });
}

/**
 * 模糊查询设备
 * @param params
 * @returns
 */

export async function deviceList(params: any) {
  return request('/api/device/deviceList', {
    method: 'POST',
    data: params,
  });
}
